/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.topic.conversation.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 社群管理Entity
 * @author zpp
 * @version 2020-02-03
 */
@Table(name="t_topic_of_conversation", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="topic_title", attrName="topicTitle", label="话题的主题", queryType=QueryType.LIKE),
		@Column(name="topic_simple", attrName="topicSimple", label="话题的简介"),
		@Column(name="topic_content", attrName="topicContent", label="话题的内容"),
		@Column(name="look_num", attrName="lookNum", label="点击观看量"),
		@Column(name="comment_num", attrName="commentNum", label="评论量"),
		@Column(name="share_num", attrName="shareNum", label="分享量"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="itemize", attrName="itemize", label="话题分类"),
		@Column(name="hot_or_recomm", attrName="hotOrRecomm", label="热门或推荐 1代表热门2代表推荐"),
		@Column(name="topic_img_path", attrName="topicImgPath", label="话题中的图片路径"),
		@Column(name="topic_img", attrName="topicImg", label="话题中的图片名多个用|号隔开"),
	}, orderBy="a.update_date DESC"
)
public class TtopicOfConversation extends DataEntity<TtopicOfConversation> {
	
	private static final long serialVersionUID = 1L;
	private String topicTitle;		// 话题的主题
	private String topicSimple;		// 话题的简介
	private String topicContent;		// 话题的内容
	private Long lookNum;		// 点击观看量
	private Long commentNum;		// 评论量
	private Long shareNum;		// 分享量
	private String itemize;		// 话题分类
	private Integer hotOrRecomm;		// 热门或推荐 1代表热门2代表推荐
	private String topicImgPath;		// 话题中的图片路径
	private String topicImg;		// 话题中的图片名多个用|号隔开
	
	public TtopicOfConversation() {
		this(null);
	}

	public TtopicOfConversation(String id){
		super(id);
	}
	
	@Length(min=0, max=100, message="话题的主题长度不能超过 100 个字符")
	public String getTopicTitle() {
		return topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}
	
	@Length(min=0, max=200, message="话题的简介长度不能超过 200 个字符")
	public String getTopicSimple() {
		return topicSimple;
	}

	public void setTopicSimple(String topicSimple) {
		this.topicSimple = topicSimple;
	}
	
	@Length(min=0, max=500, message="话题的内容长度不能超过 500 个字符")
	public String getTopicContent() {
		return topicContent;
	}

	public void setTopicContent(String topicContent) {
		this.topicContent = topicContent;
	}
	
	public Long getLookNum() {
		return lookNum;
	}

	public void setLookNum(Long lookNum) {
		this.lookNum = lookNum;
	}
	
	public Long getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(Long commentNum) {
		this.commentNum = commentNum;
	}
	
	public Long getShareNum() {
		return shareNum;
	}

	public void setShareNum(Long shareNum) {
		this.shareNum = shareNum;
	}
	
	@Length(min=0, max=20, message="话题分类长度不能超过 20 个字符")
	public String getItemize() {
		return itemize;
	}

	public void setItemize(String itemize) {
		this.itemize = itemize;
	}
	
	public Integer getHotOrRecomm() {
		return hotOrRecomm;
	}

	public void setHotOrRecomm(Integer hotOrRecomm) {
		this.hotOrRecomm = hotOrRecomm;
	}
	
	public String getTopicImgPath() {
		return topicImgPath;
	}

	public void setTopicImgPath(String topicImgPath) {
		this.topicImgPath = topicImgPath;
	}
	
	public String getTopicImg() {
		return topicImg;
	}

	public void setTopicImg(String topicImg) {
		this.topicImg = topicImg;
	}
	
}